import 'dart:convert';

import 'package:base_flutter/base_flutter.dart';
import 'package:base_package_init/base_package_init.dart';

var urlHead = Options(contentType: Headers.formUrlEncodedContentType);

extension RequestExt on Map {
  Map<String, dynamic> toJsonStr({String format = "jsonStr"}) {
    return {"$format": json.encode(this)};
  }
}

class CommonApis{
  ///获取字典数据
  static String get comboData => '${SaasPackageInit.baseUrl}comn/codeValue/list';

  ///上传文件获取文件信息
  static String get uploadFile => '${SaasPackageInit.baseUrl}serveRequest/upload';

  ///解析二维码
  static String get decodeQrcode => '${SaasPackageInit.baseUrl}qrCode/decCode';

  ///床位信息
  static String get bedInfo => '${SaasPackageInit.baseUrl}roomFigure/bedInfo';


}